package only.level5.railgun.ysartifactsimulation.weapon;

import only.level5.railgun.ysartifactsimulation.Bean.CharacterScene;

public class Homa extends Weapon {
    public int refineLevel;
    public Homa(int refineLevel){
        this.atk = 608D;
        this.subStatValue = 0.662;
        this.refineLevel = refineLevel;
        this.name = "护摩";
        this.code = 1;
    }

    @Override
    public CharacterScene subStatEnhance(CharacterScene CharacterScene) {
        CharacterScene.addCritDmg(subStatValue);
        return CharacterScene;
    }

    @Override
    public CharacterScene specialAbility(CharacterScene CharacterScene) {
        CharacterScene.addHp(CharacterScene.getHp()*0.2*(1+(refineLevel-1)*0.25));
        double totalHp = CharacterScene.getHp() + CharacterScene.getHp_ex();
        CharacterScene.setAtk_ex(CharacterScene.getAtk_ex()+totalHp * (0.018*(1+(refineLevel-1)*0.25)));
        return CharacterScene;
    }
}